import GameLogic

cont = GameLogic.getCurrentController()
me   = cont.getOwner()
mess = cont.getSensor('Mess')

# if an action in sentence we play it
# if action is the same we wait the end
if mess.isPositive():
	me.action = mess.getBodies()[0]
	act = cont.getActuator(me.action)
	print "is positive : " + me.action
	GameLogic.addActiveActuator(act,1)     #play the action		
